<!--<?php
list($webPageTitle, $metaDescription, $metaKeywords) = getUSeo($USCR);
print<<<EOT
--><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$webPageTitle - Powered by phpwind</title>
<meta name="generator" content="phpwind $wind_version" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<base id="headbase" href="$db_bbsurl/" />
<link rel="stylesheet" type="text/css" href="images/pw_core.css" media="all" />
<link rel="stylesheet" type="text/css" href="u/images/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="images/post/minieitor/minieitor.css" media="all" />
<!--
EOT;
require_once(uTemplate::printEot('css'));
if ($USCR == 'space_index') {print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="u/images/usercenter.css" media="all" />
<!--
EOT;
}print <<<EOT
-->
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<script type="text/javascript" LANGUAGE="JavaScript" src="js/core/core.js"></script>
<script type="text/javascript" LANGUAGE="JavaScript" src="js/core/tab.js"></script>
<script language="JavaScript">
var imgpath = '$imgpath';
var verifyhash = '$verifyhash';
var winduid = '$winduid';
var windid	= '$windid';
var groupid	= '$groupid';
var charset = '$db_charset';
var basename = '$basename';
var temp_basename = '$temp_basename';
var modeimg = '$pwModeImg';
</script>
</head>
<body>
<div class="warp">
	<div class="header">
	<div class="topbar">
		<div class="topwarp cc">
			<a href="index.php" class="logo"><img src="u/themes/$uskin/images/$uskin_logo" alt="logo" /></a>
			<div class="fl">
				<a href="u.php">个人中心</a>
<!--
EOT;
if ($o_browseopen) {print <<<EOT
-->
				<i>&nbsp;</i>
				<a href="mode.php?m=o">广场</a>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
$db_menuinit .= ",'td_omainNav' : 'menu_omainNav'";
print <<<EOT
-->
				<i>&nbsp;</i>
				<a id="td_omainNav" href="index.php" class="menudown">返回社区首页</a>
			</div>
			<div class="fr">
<!--
EOT;
if ($winduid) {print <<<EOT
-->
				<a href="u.php" class="b">$windid</a>
				<a href="$loginouturl" class="mr10">退出</a><i>&nbsp;</i>
<!--
EOT;
	if($winddb['newpm']>0 && $_G['maxmsg']>0){print <<<EOT
-->
				<a href="message.php" class="newmes">消息($winddb[newpm])</a>
<!--
EOT;
	}else{print <<<EOT
-->
				<a href="message.php">消息</a>
<!--
EOT;
	}
	if($db_job_isopen){
		$jobnum = ($winddb['jobnum']>0) ? "(".$winddb['jobnum'].")" : "";
print <<<EOT
-->
                <a href="jobcenter.php">任务<span>$jobnum</span></a>
<!--
EOT;
	}
	if($db_toolifopen){
print <<<EOT
-->
				<a href="profile.php?action=toolcenter">道具</a>
<!--
EOT;
	}
	$db_menuinit .= ",'td_profile' : 'menu_profile'";
print <<<EOT
-->
				<a id="td_profile" href="profile.php" class="mr10 menudown">设置</a><i>&nbsp;</i>
<!--
EOT;
	if (CkInArray($windid, $manager) || $SYSTEM['allowadmincp']) {print <<<EOT
-->
				<a href="$db_adminfile" target="_blank">系统设置</a>
<!--
EOT;
	}
} else {print <<<EOT
-->
				<a href="$loginurl">登录</a>
				<a href="$regurl" class="mr10">注册</a>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
	</div>
<!--head begin-->
<!--
EOT;
if (isset($isSpace) && $isSpace) {
$style_banner = $space['banner_s'] ? " style=\"background:url({$space[banner_s]}) repeat;\"" : '';
print <<<EOT
-->
	<div class="head"{$style_banner}>
		<div class="spBan">
			<div class="site">
				<h2 id="spaceName">
					{$space['name']}
					<a id="showNameEditLink" style="display:none;" class="s7 f12" href="u.php?a=set&tab=basic">[编辑]</a>
				</h2>
				<p>$space[descript]</p>
				<p>{$db_bbsurl}/u.php?uid=$space[uid] &nbsp;<a href="javascript:;" id="bookmarkExplore" onClick="Addtoie('{$db_bbsurl}/u.php?uid=$space[uid]','{$space['name']}');" class="s7">[收藏]</a>&nbsp;<a href="javascript:;" onClick="CopyCode('{$db_bbsurl}/u.php?uid=$space[uid]')" class="s7">[复制]</a></p>
			</div>
			<div class="bannerBg"></div>
		</div>
		<div class="cc">
		<div class="fr">
			<div class="search fl">
			<form id="searchForm" action="searcher.php" method="post" target="_blank">
				<input type="hidden" name="verify" value="$verifyhash">
				<input type="hidden" name="step" value="2">
				<input id="searchType" type="hidden" name="type" value="user">
				<span id="submitSearch" class="adown fl cp">搜索</span>
				<div id="searchTypeSelect" class="fl" style="display:none;">
					<ul>
						<li id="searchType_user" class="current">用户</li>
						<li id="searchType_thread">帖子</li>
						<li id="searchType_diary">日志</li>
						<li id="searchType_forum">版块</li>
						<li id="searchType_group">群组</li>
					</ul>
				</div>
				<input id="searchKeyword" class="sip" name="keyword" type="text">
				<button type="submit">搜索</button>
			</form>
			</div>
<!--
EOT;
if ($winduid) {
if ($space['isMe']) {print <<<EOT
-->
			<span class="btn4 fl"><span><button onClick="location.href='u.php?a=set'">空间装扮</button></span></span>
<!--
EOT;
}}print <<<EOT
-->
		</div>
		<div class="navA">
			<ul>
				<li class="current"><a href="u.php?uid=$space[uid]">首页</a></li>
				<li><a href="apps.php?q=weibo&uid=$space[uid]">新鲜事</a></li>
<!--
EOT;
if($GLOBALS['db_dopen']){print <<<EOT
-->
				<li><a href="apps.php?q=diary&uid=$space[uid]">日志</a></li>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($GLOBALS['db_phopen']){print <<<EOT
-->
				<li><a href="apps.php?q=photos&uid=$space[uid]">相册</a></li>
<!--
EOT;
}print <<<EOT
-->
				<li><a href="apps.php?q=article&uid=$space[uid]">帖子</a></li>
				<li class="none"><a href="u.php?a=info&uid=$space[uid]">个人资料</a></li>
				<!-- <li><a href="apps.php?q=diary" class="down">更多</a></li> -->
			</ul>
		</div>
		</div>
	</div>
<script language="javascript">
if(is_webkit)
	getObj('bookmarkExplore').parentNode.removeChild(getObj('bookmarkExplore'));
var timeoutSpecifier = null;
function hideSubMenu(subMenuId) {
	timeoutSpecifier = setTimeout(function() {
		getObj(subMenuId).style.display = 'none';
	}, 100);
}
function ctrlSubMenu(parentId, subMenuId) {
	clearTimeout(timeoutSpecifier);
	getObj(subMenuId).style.display = '';
	getObj(parentId).onmouseout = function() {
		hideSubMenu(subMenuId);
		getObj(parentId).onmouseout = '';
	};
	getObj(subMenuId).onmouseout = function() {
		hideSubMenu(subMenuId);
	};
	getObj(subMenuId).onmouseover = function() {
		clearTimeout(timeoutSpecifier);
		getObj(subMenuId).style.display = '';
	};
}
function bindSearchTypes() {
	var elements = getObj('searchTypeSelect').getElementsByTagName('li');
	for (i=0; i<elements.length; i++) {
		elements[i].onclick = function() {
			currentType = this.id.substr(11);
			getObj('searchType').value = currentType;			
			selectSearchType();

			getObj('submitSearch').innerHTML = this.innerHTML.replace(/(\s*$)/g, "");
			if (getObj('searchKeyword').value != '') {
				//getObj('searchForm').submit();
			} else {
				getObj('searchKeyword').focus();
			}
			displayElement('searchTypeSelect', false);
		}
	}
}
function selectSearchType() {
	var elements = getObj('searchTypeSelect').getElementsByTagName('li');
	currentType = getObj('searchType').value;
	for (i=0; i<elements.length; i++) {
		elements[i].className = (elements[i].id.substr(11) == currentType ? 'current' : '');
	}
}

bindSearchTypes();
getObj('submitSearch').onmouseover = function() {
	selectSearchType();
	ctrlSubMenu('submitSearch', 'searchTypeSelect');
};
//getObj('submitSearch').onclick = function() {getObj('searchForm').submit();};

/*
EOT;
if ($space['uid'] == $winduid) {print <<<EOT
*/
getObj('spaceName').onmousemove = function() {
	displayElement('showNameEditLink', true);
}
getObj('spaceName').onmouseout = function() {
	displayElement('showNameEditLink', false);
}
/*
EOT;
}
print <<<EOT
*/
</script>
<!--
EOT;
} else {
$s_lang = array('user' => array('个人中心','u.php','visit.png'), 'set' => array('设置','profile.php','visit.png'), 'msg' => array('消息','message.php','visit.png'));
list($uKey,$uValue) = explode('_', $USCR);
$uKey = (isset($s_lang[$uKey])) ? $uKey : 'user';
print <<<EOT
-->
	<div class="headB cc">
<!--
EOT;
$db_menuinit .= ",'td_appMenu' : 'menu_appMenu'";
print <<<EOT
-->
		<div class="fr appMenu cp" id="td_appMenu">快捷通道</div>
		<div id="menu_appMenu" style="display:none;">
			<div>
				<div class="homeApp cc">
					<div class="homeApptitle fr">快捷通道</div>
					<div class="homeAppcont">
						<ul class="homeApptwo cc">
<!--
EOT;
if($db_dopen){print <<<EOT
-->
							<li><a href="apps.php?q=diary" class="f14" style="background:url(u/images/icon/log.png) 0 5px no-repeat;">日志</a></li>
<!--
EOT;
}if($GLOBALS['db_phopen']){print <<<EOT
-->
							<li><a href="apps.php?q=photos" class="f14" style="background:url(u/images/icon/albums.png) 0 5px no-repeat;">相册</a></li>
<!--
EOT;
}print <<<EOT
-->
							<li><a href="apps.php?q=weibo" style="background:url(u/images/icon/record.png) 0 5px no-repeat;">新鲜事</a></li>
							<li><a href="apps.php?q=article" style="background:url(u/images/icon/posts.png) 0 5px no-repeat;">帖子</a></li>
<!--
EOT;
if($db_groups_open){print <<<EOT
-->
							<li><a href="apps.php?q=groups" style="background:url(u/images/icon/groups.png) 0 5px no-repeat;">群组</a></li>
<!--
EOT;
}print <<<EOT
-->
							<li><a href="apps.php?q=collection" style="background:url(u/images/icon/collection.png) 0 5px no-repeat;">收藏</a></li>
<!--
EOT;
if(!trim($o_hot_groups,',') || strpos($o_hot_groups,','.$winddb[groupid].',') !== false || ($winddb[groupid] == -1 && strpos($o_hot_groups,','.$winddb[memberid].',') !== false)){
	$popedom = true;
}else{
	$popedom = false;
}
if($o_hot_open && $popedom){print <<<EOT
-->
							<li><a href="apps.php?q=hot" style="background:url(u/images/icon/hot.png) 0 5px no-repeat;">热榜</a></li>
<!--
EOT;
}print <<<EOT
-->
							<li><a href="u.php?a=friend" style="background:url(u/images/icon/friend.png) 0 5px no-repeat;">朋友</a></li>
							<li><a href="apps.php?q=activity" style="background:url(u/images/icon/activity.png) 0 5px no-repeat;">活动</a></li>
<!--
EOT;
if($app_array && $db_appifopen){print <<<EOT
-->
<!--
EOT;
foreach ($app_array as $key => $value) {print <<<EOT
-->
						<li><a href="apps.php?id=$value[appid]" style="background:url($db_server_url/images/icon/s{$value[appid]}.png) 0 5px no-repeat;">{$value[appname]}</a></li>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->
</ul>
					</div>
					<div class="homeAppbot">
<!--
EOT;
if($db_appifopen && $db_siteappkey){print<<<EOT
-->
					<a href="u.php?a=myapp" class="mr10">添加</a>
<!--
EOT;
}print <<<EOT
-->
					<a href="u.php?a=myapp&action=my">管理</a></div>
				</div>
			</div>
		</div>
<!--
EOT;
if($GLOBALS['db_phopen']){print <<<EOT
-->
		<a class="fr aUpload" href="apps.php?q=photos&a=upload&job=flash">传照片</a>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($GLOBALS['db_dopen']){print <<<EOT
-->
		<a class="fr aWrite" href="apps.php?q=diary&a=write">写日志</a>
		<!--
EOT;
}print <<<EOT
-->
		<div class="place fl">
			<div>

<!--
EOT;
$headtitle = '';
switch($uValue){
	case 'home':
				 $headtitle   = "<img src='u/images/module/{$s_lang[$uKey][2]}' /><h2><a href=\"{$s_lang[$uKey][1]}\" class='s5'>{$s_lang[$uKey][0]}</a></h2>";
				 $headtitle  .= "<a href=\"u.php?uid=$space[uid]\" class='s7'>我的主页</a>";
				 break;
	case 'photo':
				 $headtitle   = "<img src='u/images/module/photos.png' /><h2><a href='apps.php?q=photos' class='s5'>相册</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'diary':
				 $headtitle   = "<img src='u/images/module/diary.png' /><h2><a href='apps.php?q=diary' class='s5'>日志</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'weibo':
				 $headtitle   = "<img src='u/images/module/write.png' /><h2><a href='apps.php?q=weibo' class='s5'>新鲜事</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'hot':
				 $headtitle   = "<img src='u/images/module/hot.png' /><h2><a href='apps.php?q=hot' class='s5'>热榜</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'article':
				 $headtitle   = "<img src='u/images/module/article.png' /><h2><a href='apps.php?q=article' class='s5'>帖子</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'activity':
				 $headtitle   = "<img src='u/images/module/activity.png' /><h2><a href='apps.php?q=activity' class='s5'>活动</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'groups':
				 $headtitle   = "<img src='u/images/module/colony.png' /><h2><a href='apps.php?q=groups' class='s5'>群组</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'friend':
				 $headtitle   = "<img src='u/images/module/friend.png' /><h2><a href='u.php?a=friend' class='s5'>朋友</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'jobcenter':
				 $headtitle   = "<img src='u/images/module/jobcenter.png' /><h2><a href='jobcenter.php' class='s5'>任务</a></h2>";
				 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'toolcenter':
				 $headtitle   = "<img src='u/images/module/toolcenter.png' /><h2><a href='profile.php?action=toolcenter' class='s5'>道具</a></h2>";
			 	 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'appid':
				 $headtitle   = "<img src=\"$db_server_url/static/icon/{$appinfo[appid]}.png\" /><h2><a href=\"apps.php?id={$appinfo[appid]}\" class='s5'>{$appinfo[appname]}</a></h2>";
			 	 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'appset':
				 $headtitle   = "<img src='u/images/module/appset.png' /><h2><a href='u.php?a=myapp&action=my' class='s5'>应用管理</a></h2>";
			 	 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	case 'collection':
				 $headtitle   = "<img src='u/images/module/collection.png' /><h2><a href='apps.php?q=collection' class='s5'>收藏</a></h2>";
			 	 $headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				 break;
	default :
	 			$headtitle   = "<img src='u/images/module/{$s_lang[$uKey][2]}' /><h2><a href=\"{$s_lang[$uKey][1]}\" class='s5'>{$s_lang[$uKey][0]}</a></h2>";
				$headtitle  .= "<a href='u.php' class='s7'>返回个人中心</a>";
				break;
}

print <<<EOT
-->
				$headtitle
			</div>
		</div>
<!--
EOT;
if (!isset($_COOKIE['message_remind']) && ($winddb['newpm']>0||$winddb['newreferto']>0||$winddb['newfans']>0||$winddb['newcomment']>0)) {
print <<<EOT
-->
		<div class="fl p15" id="message_remind">
			<div class="cc spaceTip fl">
				<span class="fl">
<!--
EOT;
$extraSplit = '';
if ($winddb['newpm']>0) {print <<<EOT
-->
					{$extraSplit}<a href="message.php"><span class="s6">有<span class="s2 b">$winddb[newpm]</span>条新消息</span></a>
<!--
EOT;
$extraSplit = '，';
}if ($winddb['newreferto']>0 || $winddb['newcomment']>0) {
$tmpNum = $winddb['newreferto'] + $winddb['newcomment'];
$tmpAction = ($winddb['newcomment'] > $winddb['newreferto']) ? 'receive' : 'refer';
print <<<EOT
-->
					{$extraSplit}<a href="apps.php?q=weibo&do=$tmpAction"><span class="s6">有<span class="s2 b">$tmpNum</span>人提到你</span></a>
<!--
EOT;
$extraSplit = '，';
}if ($winddb['newfans']>0) {print <<<EOT
-->
					{$extraSplit}<a href="u.php?a=friend&type=attention&atype=attentioned"><span class="s6">有<span class="s2 b">$winddb[newfans]</span>人关注你</span></a>
<!--
EOT;
}print <<<EOT
-->
				</span>
				<a href="javascript:;" class="adel" onClick="displayElement('message_remind',false);document.cookie='message_remind=1';return false;" style="float:left;">删除</a>
			</div>
		</div>
<!--
EOT;
}print <<<EOT
-->
	</div>
<!--
EOT;
}print <<<EOT
-->
	<div id="menu_profile" style="display:none;">
		<div style="margin-right:-6px;">
		<div class="pw_menu" style="width:45px; position:relative;">
			<h6 style="left:-1px;"><a href="profile.php" class="down">设置</a></h6>
			<ul class="menuList" style="width:43px;">
				<li><a href="profile.php?action=modify">帐号</a></li>
				<li><a href="profile.php?action=privacy">隐私</a></li>
				<li><a href="userpay.php">积分</a></li>
				<li><a href="profile.php?action=permission">权限</a></li>
			</ul>
		</div>
		</div>
	</div>
	<div id="menu_omainNav" style="display:none;">
		<div style="margin-left:-6px;">
		<div class="pw_menu" style="width:93px; position:relative;">
			<h6 style="left:-1px;"><a href="$_mainUrl" class="down">返回社区首页</a></h6>
			<ul class="menuList" style="width:91px;">
<!--
EOT;
$navConfigService = L::loadClass('navconfig', 'site');
foreach($navConfigService->findValidNavListByTypeAndPostion(PW_NAV_TYPE_MAIN, 'o') as $key => $value) {
print<<<EOT
-->
				<li><a href="{$value[data][link]}"><span>{$value[data][title]}</span></a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
		</div>
	</div>
	</div>
	<div class="main">
<!--
EOT;
if (!isset($isSpace) || !$isSpace) {print <<<EOT
-->
		<span class="headTrgA"></span><span class="headTrgB"></span>
<!--
EOT;
}print <<<EOT
-->
		<div class="c"></div>
<!--
EOT;
?>-->